package com.shoulder.feign.autoconfigure;

import com.shoulder.feign.interceptor.ClientRequestInterceptor;
import com.shoulder.imports.Imports;
import feign.RequestInterceptor;
import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.context.annotation.Bean;

@AutoConfiguration
@Imports(value = AutoConfiguration.class)
public class FeignAutoConfiguration {

    @Bean
    public RequestInterceptor requestInterceptor() {
        return new ClientRequestInterceptor();
    }
}
